/*!
 * Copyright (C) 2020 - All Rights Reserved by
 * @author : ZhaoYanbo
 * @email  : zyb920@hotmail.com
 * @created: 2020-10-31
 * @version: 1.0.0.0
 *
 */

#ifndef LYRICEDITDATA_H
#define LYRICEDITDATA_H

enum FineShowMode{
    NormalShow, KaraokeShow, KaraokeReversedShow
};

struct BasePos {
    bool  normal;      //是否是常规线
    bool  canMove;     //这根线是否能移动
    bool  previewHere; //是否从这根线开始播放

    BasePos() {
        normal = true;
        canMove = false;
        previewHere = false;
    }

    ///反转move标记
    void invertMove() {
        canMove = !canMove;
    }

    ///反转Preview标记
    void invertPreview() {
        previewHere = !previewHere;
    }
};

//值模式
struct VPos : public BasePos {
    float value;
    VPos() : BasePos() {
        value = 0.00f;
    }
    VPos(float v) : BasePos() {
        value = v;
    }
};

//坐标模式
struct ZPos : public BasePos {
    int x;
    ZPos() : BasePos() {
        x = -1;
    }
};


#endif // LYRICEDITDATA_H
